<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="layout::head('首页')">
    <style th:inline="text">
        body{
            background: url("[[@{/}]]img/1.jpg");
        }
    </style>
    <meta charset="UTF-8"/>
    <title>图书</title>

</head>

<body class="container">
<div th:replace="~{layout::header}"></div>
<div class="container1" style="margin-left:400px">
<br/>
<h1>修改图书</h1>

<form  th:action="@{/book/edit2}" method="post">


    <label>图书id:</label>     <input type="text"   readonly="readonly"  name="id" th:value="${booke.getId()}"></br>
    <label>图书isbn:</label>     <input type="text"  name="isbn" th:value="${booke.getIsbn()}"></br>
    <label>图书名: </label>       <input type="text"  name="name" th:value="${booke.getName()}" ></br>
    <label>作者:</label>          <input type="text"  name="author"  th:value="${booke.getAuthor()}"></br>
    <label>出版社:</label>        <input type="text"  name="publish"  th:value="${booke.getPublish()}"></br>
    <label>价格:</label>          <input type="text"  name="price" th:value="${booke.getPrice()}"></br>
    <label> 图书类别: </label>      <input type="text"  name="cat_id"th:value="${booke.getCategory().id}" >
    <label> 类别名称: </label>      <input type="text" disabled="disabled" th:value="${booke.getCategory().getName()}" ></br>


    <input type="submit" value="保存" />
    <a th:href="@{/book/list}" >返回</a>

</form>


</div>
</body>
</html>